package com.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * VoteOption entity. @author MyEclipse Persistence Tools
 */

public class VoteOption implements java.io.Serializable {

	// Fields

	private Integer voId;
	private Vote vote;
	private String voText;
	private Set userVotes = new HashSet(0);

	// Constructors

	/** default constructor */
	public VoteOption() {
	}

	/** minimal constructor */
	public VoteOption(String voText) {
		this.voText = voText;
	}

	/** full constructor */
	public VoteOption(Vote vote, String voText, Set userVotes) {
		this.vote = vote;
		this.voText = voText;
		this.userVotes = userVotes;
	}

	// Property accessors

	public Integer getVoId() {
		return this.voId;
	}

	public void setVoId(Integer voId) {
		this.voId = voId;
	}

	public Vote getVote() {
		return this.vote;
	}

	public void setVote(Vote vote) {
		this.vote = vote;
	}

	public String getVoText() {
		return this.voText;
	}

	public void setVoText(String voText) {
		this.voText = voText;
	}

	public Set getUserVotes() {
		return this.userVotes;
	}

	public void setUserVotes(Set userVotes) {
		this.userVotes = userVotes;
	}

	@Override
	public String toString() {
		return "VoteOption [voId=" + voId + ", voText=" + voText + "]";
	}

}